﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            Plane plan = new Plane("飞机",7);
            
            plan.Fly();
            plan.Land();
            plan.TakeOff();
            plan.Carrypassange();

            Console.WriteLine();

            Brid brid = new Brid("小鸟");
            brid.Fly();
            brid.Land();
            brid.TakeOff();
            brid.Eat();
            brid.LayEggs();
            Console.WriteLine();

            Superman superman = new Superman("超人");
            superman.Fly();
            superman.Land();
            superman.TakeOff();
            superman.Eat();

            Console.ReadLine();
        }
            public static void IFlyable(IFlyable I )
            {
                I.TakeOff();
                I.Fly();
                I.Land();
            }
            public static void Animal(Animal a)
            {
                a.Eat();
            }
        }

    }

